const { h } = window.Vue

const MyTitle = {
  props: ['test'],
  emits: ['update:test'],
  template: `
    <input :value="test" @input="sendData" />
  `,
  setup (props, context) {
    context.emit('update:test', '吴大勋')
    const sendData = (event) => {
      context.emit('update:test', event.target.value)
    }
    return {
      sendData
    }
  }
}

export default MyTitle